//生成随机值
var x_t = Number(Math.random().toFixed(2));
var y_t = Number(Math.random().toFixed(2));
//开始比较
var z_t = x_t >= y_t ? x_t : y_t;
// 获取ID为app的div元素
var appDiv_t = document.getElementById("ts");
// 自定义HTML字符串
var htmlStr_t = "Typescript<br>\u751F\u6210\u7684X\u503C\uFF1A".concat(x_t, "<br>\u751F\u6210\u7684Y\u503C\uFF1A").concat(y_t, "<br>\u6700\u5927\u503C\u662F\uFF1A ").concat(z_t);
if (appDiv_t) {
    // 将HTML字符串赋值给appDiv的innerHTML属性
    appDiv_t.innerHTML = htmlStr_t;
}
else {
    console.error("找不到ID为“ts”的元素");
}
